var momObj = function() {
	this.x;
	this.y;
	this.bigBody = new Image();
	this.bigBody_down = new Image();
	this.line = new Image();
}; 
momObj.prototype.init = function(){
	this.x = canWidth * 0.5;
	this.y = 144;
	this.bigBody.src = "./src/zhua.png";
	this.bigBody_down.src = "./src/zhua_open.png";
	this.line.src = "./src/line.png";
}
momObj.prototype.draw = function(){
	ctx1.save();
	ctx1.translate(this.x,this.y);
	ctx1.drawImage(this.bigBody,-this.bigBody.width * 0.5, -this.bigBody.height * 0.5+10);
	// ctx1.drawImage(this.bigBody_down,-this.bigBody_down.width * 0.5, -this.bigBody_down.height * 0.5);
	ctx1.drawImage(this.line,-this.line.width * 0.2, -this.line.height * 0.5-50,6,60);
	ctx1.restore();
}

var num=0;
var up=true;
var downNum=0;
momObj.prototype.number = function(st){
	// console.log(this.x);
	var l = 144 + num;
	this.bigBody_down.src = "./src/zhua_open.png";
	this.bigBody = this.bigBody_down;
	if(up){
		this.bigBody_down.src = "./src/zhua.png";
		num -= 0.07 * deltaTime;
		ctx1.drawImage(this.line,137, 56,6,l-100);
		this.y = l;
		up = num<=0?false:true;
		if(num<= 0&&downNum>0){
			// console.log("12313");
			// window.location.href="aiyaya_result.html"; 
			$(".cover").hide();
			// $(".result").show();
			// $(".word").show();
			window.cancelAnimationFrame(st);
		}
	}else{
		num += 0.07 * deltaTime;
		ctx1.drawImage(this.line,137, 56,6,l-100);
		this.y = l;
		// console.log(this.y);
		up = num>=153?true:false;
		downNum++;
	}
	
}
